<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
	<head>
		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
		<title>发票申请-金融风险管理系统</title>
		<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
		<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
		<script language='javascript'>
		function jumpPage(page) {
			var form1 = document.form1;
			form1.action = "<s:property value='contextPath'/>/cs/add.do?currentPage=" + page;
			form1.submit();
		}
		
		function billEdit(id) {
			var form1 = document.form1;
			form1.action = "<s:property value='contextPath'/>/mf/apply/billFinancialView.do?currentPage=${currentPage}&id="+id;
			form1.submit();
		}
		function openSubmit(id) {
			var form1 = document.form1;
			form1.action = "<s:property value='contextPath'/>/mf/apply/billSubmit.do?currentPage=${currentPage}&applyId="+id;
			form1.submit();
		}
		  
	  $(document).ready(function(){
			$("[type=button][name='btn_submit']").click(function(e){
				$("#operate").val(e.target.id);
				$("#form1").action ="<s:property value='contextPath'/>/cs/create.do";
				$("#form1").submit();
			}); 
			
			});
		</script>
	</head>
	<body  leftmargin='8' topmargin='8'>
	<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
 	    </span>管理费&gt;&gt;发票详情&lt;金融机构&gt;</div>
		<div class="xt_main_right_center">
		<form id="form1" name="form1" action="" method="post"  enctype="multipart/form-data" onSubmit="return Validator.Validate(this,3)">
			<table width="100%" border="0" cellpadding="1" cellspacing="1">
			<tr>
				<td class="left-td-width-bg">
					批次号：
				</td>
				<td width="30%" class="bline" align="left">
				${entity.applyNum}
				</td>
				<td class="left-td-width-bg">
					申请人：
				</td>
				<td width="45%" class="bline" align="left">
				${entity.applyUser.realName}
				</td>
			</tr>
		</table>
	
		<!-- 列表开始 -->	
		<s:if test="entity!=null">
			<br/>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
			  <tr>
			    <td height="25" align="left"><font color="#0066CC"><strong>管理费清单：</strong></font></td>
			   
			  </tr>
			</table> 
			<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
			  <tr> 
			    <td width="4%" class="top-td-width-bg">序号</td>
			    <td width="9%" class="top-td-width-bg">金融机构</td>
			    <td width="10%" class="top-td-width-bg">总计</td>
			    <td width="10%" class="top-td-width-bg">操作</td>
			  </tr>
			 <s:iterator value="entity.bills" id="objs" status="stx" >
				<tr height="26" align="center" bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';">
					<td  class="down-center-td-width-bg">
						<s:property value="#stx.index+1"/>
					</td>
					<td   class="down-center-td-width-bg">
						<s:property value="financial.name"/>
					</td>
					<td   class="down-center-td-width-bg">
						<s:property value="formatAmount(receivableAmount)"/>
					</td>
				 	<td  class="down-center-td-width-bg">
						<a href="javascript:billEdit(<s:property value="id"/>)" ><img src="${contextPath}/images/chakan.gif" alt="详情" width="16" height="18" border="0" /></a>
					</td> 
				</tr>
			</s:iterator> 
			</table>
			
			<table width="100%" border="0" cellpadding="1" cellspacing="1">
			<tr style="padding-top: 20px">
				<td class="bline" colspan="4" align="center">&nbsp;</td>
			</tr>
			</table>
		
			<br/>
		</s:if>
		</form>
		</div>
	</body>
</html>